//
//    Copyright (C) 2012  OinkStudio
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.

package oldClasses;

public class TableInfo {
	private Object camp1;
	private Object camp2;
	private Object camp3;
	private Object camp4;
	private Object camp5;
	private Object camp6;
	private Object camp7;
	private Object camp8;

	private int size;

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public TableInfo(Object[] camps) {
		size = camps.length;
		if (camps.length > 1)
			this.camp1 = camps[0];
		if (camps.length > 2)
			this.camp2 = camps[1];
		if (camps.length > 3)
			this.camp3 = camps[2];
		if (camps.length > 4)
			this.camp4 = camps[3];
		if (camps.length > 5)
			this.camp5 = camps[4];
		if (camps.length > 6)
			this.camp6 = camps[5];
		if (camps.length > 7)
			this.camp7 = camps[6];
		if (camps.length > 8)
			this.camp8 = camps[7];
	}

	public TableInfo() {
		super();
	}

	public Object getCamp1() {
		return camp1;
	}

	public void setCamp1(Object camp1) {
		this.camp1 = camp1;
	}

	public Object getCamp2() {
		return camp2;
	}

	public void setCamp2(Object camp2) {
		this.camp2 = camp2;
	}

	public Object getCamp3() {
		return camp3;
	}

	public void setCamp3(Object camp3) {
		this.camp3 = camp3;
	}

	public Object getCamp4() {
		return camp4;
	}

	public void setCamp4(Object camp4) {
		this.camp4 = camp4;
	}

	public Object getCamp5() {
		return camp5;
	}

	public void setCamp5(Object camp5) {
		this.camp5 = camp5;
	}

	public Object getCamp6() {
		return camp6;
	}

	public void setCamp6(Object camp6) {
		this.camp6 = camp6;
	}

	public Object getCamp7() {
		return camp7;
	}

	public void setCamp7(Object camp7) {
		this.camp7 = camp7;
	}

	public Object getCamp8() {
		return camp8;
	}

	public void setCamp8(Object camp8) {
		this.camp8 = camp8;
	}

}
